//
//  CacheManager.m
//  JieJieKan
//
//  Created by 极速现金侠 on 2017/7/10.
//  Copyright © 2017年 innext. All rights reserved.
//

#import "CacheManager.h"
#import "SYJCache.h"
#import "YYCache.h"

@implementation CacheManager

/**
 存值
 
 @param object object description
 @param key key description
 */
+ (void)setObject:(id)object forKey:(NSString *)key{
    [[[SYJCache manager] cache] setObject:object forKey:key];
}


/**
 取值
 
 @param key key description
 @return return value description
 */
+ (id)getObject:(NSString *)key{
    if ([[[SYJCache manager] cache] containsObjectForKey:key]) {
        id value = [[[SYJCache manager] cache] objectForKey:key];
        
        return value;
    }
    
    return nil;
}

/**
 除值
 
 @param key key description
 */
+ (void)removeCacheWithKey:(NSString *)key{
    [[[SYJCache manager] cache] removeObjectForKey:key];
}
@end
